/* 하단 고정 배너 V2 — 메인(홈/목록) PC·모바일 공통 */
.bottom-bar-v2 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 920;
  width: 100%;
  box-sizing: border-box;
  background: #454544;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0.45s;
  will-change: transform, opacity;
}
.bottom-bar-v2.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* 메인에서는 PC·모바일 모두 v2 배너를 사용하고, 기존 모바일 하단 네비(홈/메뉴/문의)는 숨김 */
.bottom-bar-inquiry-wrap {
  display: none !important;
}
.bottom-bar-v2__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}
.bottom-bar-v2__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.bottom-bar-v2__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.bottom-bar-v2__phone-text {
  min-width: 0;
}
.bottom-bar-v2__phone-number {
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.bottom-bar-v2__phone-number:hover {
  color: #fff;
  text-decoration: underline;
}
.bottom-bar-v2__phone-sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}
.bottom-bar-v2__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.bottom-bar-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}
.bottom-bar-v2__btn:hover {
  filter: brightness(0.98);
}
.bottom-bar-v2__btn:active {
  transform: scale(0.98);
}
.bottom-bar-v2__btn--consult {
  background: #fff;
  color: #e60012;
}
.bottom-bar-v2__btn--kakao {
  background: #fee500;
  color: #191919;
}
.bottom-bar-v2__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bottom-bar-v2__btn-icon--kakao img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.bottom-bar-v2__btn-arrow {
  font-size: 14px;
  font-weight: 900;
  margin-left: 2px;
}
.bottom-bar-v2__qr {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.bottom-bar-v2__qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.bottom-bar-v2__qr-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.bottom-bar-v2__qr-copy {
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.bottom-bar-v2__qr-copy p {
  margin: 0;
}
.bottom-bar-v2__qr-copy strong {
  font-weight: 800;
}
.bottom-bar-v2__qr-id {
  margin-top: 4px !important;
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
  letter-spacing: -0.01em;
}
@media (max-width: 1024px) {
  .bottom-bar-v2__inner {
    padding: 12px 24px;
    gap: 16px;
  }
  .bottom-bar-v2__btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }
  .bottom-bar-v2__qr-copy {
    display: none;
  }
}

@media (max-width: 768px) {
  .bottom-bar-v2 {
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .bottom-bar-v2__inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }

  /* 왼쪽 전화 버튼 */
  .bottom-bar-v2__phone {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-right: none;
    border-radius: 8px;
    background: #e1002a;
    color: #fff;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .bottom-bar-v2__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }

  .bottom-bar-v2__phone-icon svg {
    width: 18px;
    height: 18px;
  }

  .bottom-bar-v2__phone-text {
    min-width: 0;
    overflow: hidden;
  }

  .bottom-bar-v2__phone-number {
    font-size: clamp(12px, 4.2vw, 18px);
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .bottom-bar-v2__phone-sub {
    display: none;
  }

  /* 오른쪽 상담 버튼 영역 */
  .bottom-bar-v2__actions {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
  }

  .bottom-bar-v2__btn {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    text-align: center;
    box-sizing: border-box;
  }

  /* 오른쪽 무료상담 신청 */
  .bottom-bar-v2__btn--consult {
    flex: 1 1 0;
    width: 100%;
    background: #fff;
    color: #e1002a;
    border: 1px solid #e1002a;
    box-shadow: none;
  font-size: 0px; /* 빠른상담 요청하기 글자 크기 */
  }

.bottom-bar-v2__btn--consult::after {
  content: "상담신청";
  font-size: clamp(13px, 4.2vw, 18px);
  font-weight: 800;
  color: #e1002a;
}

  .bottom-bar-v2__btn--consult:hover,
  .bottom-bar-v2__btn--consult:active {
    background: #fff7f2;
    color: #e1002a;
  }

  .bottom-bar-v2__btn-icon {
    width: 17px;
    height: 17px;
    color: #e1002a;
  }

  .bottom-bar-v2__btn-icon svg {
    width: 17px;
    height: 17px;
  }

  .bottom-bar-v2__btn-arrow,
  .bottom-bar-v2__btn--kakao,
  .bottom-bar-v2__qr {
    display: none !important;
  }

  body.is-bottom-bar-v2-shown .floating-side-rail {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body.is-bottom-bar-v2-shown .floating-gift {
    bottom: calc(80px + 115px + 10px + env(safe-area-inset-bottom, 0px));
  }

  body.is-bottom-bar-v2-shown main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* 초소형 폰 — 번호·버튼이 한 줄에 들어가도록 추가 축소 */
@media (max-width: 360px) {
  .bottom-bar-v2__inner {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
  }

  .bottom-bar-v2__phone {
    min-height: 44px;
    padding: 0 5px;
    gap: 3px;
  }

  .bottom-bar-v2__phone-icon svg {
    width: 15px;
    height: 15px;
  }

  .bottom-bar-v2__phone-number {
    font-size: clamp(11px, 3.6vw, 14px);
    letter-spacing: -0.05em;
  }

  .bottom-bar-v2__btn {
    min-height: 44px;
    padding: 0 4px;
  }

  .bottom-bar-v2__btn--consult::after {
    font-size: clamp(12px, 3.6vw, 14px);
  }

  .bottom-bar-v2__btn-icon,
  .bottom-bar-v2__btn-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 769px) {
  body.is-bottom-bar-v2-shown main {
    padding-bottom: 96px;
  }

  body.is-bottom-bar-v2-shown .floating-side-rail {
    position: fixed;
    left: auto;
    right: 24px;
    top: auto;
    bottom: 140px;
    transform: none;
  }

  body.is-bottom-bar-v2-shown .floating-gift {
    left: 24px;
    right: auto;
    bottom: 140px;
    transform: none;
  }
}